home *** CD-ROM | disk | FTP | other *** search
- ******************************
- FINDDBL v1.1 (DOS/WINDOWS)
-
- find duplicate binary files
- by Guenter Nagler
- 1995
- (gnagler@ihm.tu-graz.ac.at)
- ******************************
-
- [1] BACKGROUND
- Sometimes I download many news articles form alt.binaries.sound.midi
- at once. Then I decode them all together and get a huge mass of midi
- files. To save time from hearing exact songs twice I compare the midi
- files to my personal midi archive and delete the files that are
- duplicates.
-
- For this purpose see also utility filedb (section [8]) that is capable
- of comparing files with maybe already deleted files!
-
- [2] FILES DESCRIPTION
-
- FINDDBL.EXE..........MSDOS executable to find duplicates
- FINDDBL.DOC..........this file, showing usage of FINDDBL.EXE
- only FINDDBL.EXE is required to run program
-
- [3] COPYRIGHT
-
- FINDDBL (c) 1995 was created by Guenter Nagler.
-
- FINDDBL is free and may be used as you wish with this one exception:
-
- You may NOT charge any fee or derive any profit for distribution
- of FINDDBL. Thus, you may NOT sell or bundle FINDDBL with any
- product in a retail environment (shareware disk distribution, CD-ROM,
- etc.) without permission of the author.
-
- You may give FINDDBL to your friends, upload it to a BBS, or ftp it to
- another internet site, as long as you don't charge anything for it.
-
- [4] DISCLAIMER
-
- FINDDBL was designed to compare binary files in two directories or two
- directory trees. It does not compare files that are hidden, system or
- that are not normal binary files.
-
- Use FINDDBL at your own risk. Anything you do with FINDDBL is your
- responsibility, and not the author's. Any damage caused to any person,
- computer, software, hardware, company, or business by running FINDDBL
- is your responsibility, and the author will not be liable.
-
- If you don't understand these terms, or are not sure of something, or
- are afraid something bad might come of using FINDDBL, don't use it!
- You are here forewarned.
-
- [5] INSTALLATION
-
- Simply copy FINDDBL.EXE in a directory that is in your path.
- When you start the program without arguments
-
- C:\> FINDDBL
-
- you should get the usage text (see next section)
-
- [6] USAGE
-
- usage: finddbl [/S][/C][/N] dir1[\[filter]] [dir2][\[filter]]
- dir1,dir2: path of directories to compare (default dir2 is .)
- filter: unix wildcards *,?,[a-z] can be used (default is *.*)
- /S: find duplicate files in subdirectories
- /C: match file content
- /N: match file name
- /V: show version
- default options: /C
-
- finddbl can be aborted using <ESC> key during searching.
- Empty files (length 0) are not considered as duplicates.
- finddbl loads table of dir1 and compares the list to files found in dir2.
- dir1 should contain less matching files than dir2 that the compare time
- is minimal.
- When using option /C (match content) finddbl only compares file data if the
- file size of two files is equal. Without specifing option /N the files
- need not to have same filenames, only file data must be identical.
-
- These combinations of the options /C and /N do following:
- /C files are considered to be duplicate if their size and content is
- equal. File date and file names are not compared.
-
- /N files are considered to be duplicate if their filenames are equal
- (name including extension but without path). The file date and file
- length and file content is not compared.
-
- /C /N (order is not important)
- files are considered to be duplicate if their filenames (exclusive path)
- are equal and their file size are equal and their content is equal.
- File date is not compared.
-
- There are two hidden options to delete duplicates.
- Do not use it if you are not a computer expert!
- You are responsible yourself if you delete files using this option!
- The program does not ask you before deleting!
-
- /Kill1 delete duplicates found at dir1 (first parameter)
- /Kill2 delete duplicates found at dir2 (first parameter)
-
- Do not use both options together!
- Warning: When using /N and not option /C together with a kill option
- then files are also deleted when files have equal name but not identical
- size and content!
-
- [7] examples
-
- example: show usage
-
- finddbl
- usage: finddbl [/S][/C][/N] dir1[\[filter]] [dir2][\[filter]]
- dir1,dir2: path of directories to compare (default dir2 is .)
- filter: unix wildcards *,?,[a-z] can be used (default is *.*)
- /S: find duplicate files in subdirectories
- /C: match file content
- /N: match file name
- /V: show version
- default options: /C
-
- example: show program version
-
- finddbl /V
- finddbl v1.1 by Günter Nagler (Aug 10 1996)
- usage: finddbl [/S][/C][/N] dir1[\[filter]] [dir2][\[filter]]
- dir1,dir2: path of directories to compare (default dir2 is .)
- filter: unix wildcards *,?,[a-z] can be used (default is *.*)
- /S: find duplicate files in subdirectories
- /C: match file content
- /N: match file name
- /V: show version
- default options: /C
-
- example: find duplicates in two special directories
-
- finddbl c:\dir1 c:\dir2
- equal: C:\DIR1\FILENAME.EXT C:\DIR2\OTHER.DAT
-
-
- example: find duplicate midi files in a midi archive
-
- finddbl /S *.mid g:\midi\*.mid
- equal: C:\NEW\MAGFLT13.MID G:\MIDI\MAGFLT13.MID
- equal: C:\NEW\MEDICINE.MID G:\MIDI\MEDICINE.MID
- equal: C:\NEW\BALLADE.MID G:\MIDI\BALLADE.MID
- equal: C:\NEW\BADNAME.MID G:\MIDI\BADNAME.MID
- equal: C:\NEW\REVIND1.MID G:\MIDI\REVIND1.MID
- equal: C:\NEW\PRAYER.MID G:\MIDI\PRAYER.MID
- equal: C:\NEW\RUNAWAY.MID G:\MIDI\RUNAWAY.MID
- equal: C:\NEW\ALWAYS.MID G:\MIDI\ALWAYS3.MID
-
- A file C:\NEW\SPRING.MID that has other content than G:\MIDI\SPRING.MID
- and is therefore not shown.
-
- example: delete duplicate files that are already in midi archive
- (be careful: it is your responsibility!)
-
- finddbl /Kill1 /S *.mid g:\midi\*.mid
- equal: C:\NEW\MAGFLT13.MID G:\MIDI\MAGFLT13.MID
- C:\NEW\MAGFLT13.MID killed.
- equal: C:\NEW\MEDICINE.MID G:\MIDI\MEDICINE.MID
- C:\NEW\MEDICINE.MID killed.
- equal: C:\NEW\BALLADE.MID G:\MIDI\BALLADE.MID
- C:\NEW\BALLADE.MID killed.
- equal: C:\NEW\BADNAME.MID G:\MIDI\BADNAME.MID
- C:\NEW\BADNAME.MID killed.
- equal: C:\NEW\REVIND1.MID G:\MIDI\REVIND1.MID
- C:\NEW\REVIND1.MID killed.
- equal: C:\NEW\PRAYER.MID G:\MIDI\PRAYER.MID
- C:\NEW\PRAYER.MID killed.
- equal: C:\NEW\RUNAWAY.MID G:\MIDI\RUNAWAY.MID
- C:\NEW\RUNAWAY.MID killed.
- equal: C:\NEW\ALWAYS.MID G:\MIDI\ALWAYS3.MID
- C:\NEW\ALWAYS.MID killed.
-
- example: find files with identical filenames, don't care of their content
-
- finddbl /S /N c:\dir1 c:\dir2
- equal: C:\NEW\MAGFLT13.MID G:\MIDI\MAGFLT13.MID
- equal: C:\NEW\MEDICINE.MID G:\MIDI\MEDICINE.MID
- equal: C:\NEW\BALLADE.MID G:\MIDI\BALLADE.MID
- equal: C:\NEW\BADNAME.MID G:\MIDI\BADNAME.MID
- equal: C:\NEW\REVIND1.MID G:\MIDI\REVIND1.MID
- equal: C:\NEW\PRAYER.MID G:\MIDI\PRAYER.MID
- equal: C:\NEW\RUNAWAY.MID G:\MIDI\RUNAWAY.MID
- equal: C:\NEW\SPRING.MID G:\MIDI\SPRING.MID
-
- The file C:\NEW\SPRING.MID is shown as duplicate to G:\MIDI\SPRING.MID
- even if the file has other content.
-
- example: find duplicate files with identical filenames
-
- finddbl /S /C /N *.mid g:\midi\*.mid
- equal: C:\NEW\MAGFLT13.MID G:\MIDI\MAGFLT13.MID
- equal: C:\NEW\MEDICINE.MID G:\MIDI\MEDICINE.MID
- equal: C:\NEW\BALLADE.MID G:\MIDI\BALLADE.MID
- equal: C:\NEW\BADNAME.MID G:\MIDI\BADNAME.MID
- equal: C:\NEW\REVIND1.MID G:\MIDI\REVIND1.MID
- equal: C:\NEW\PRAYER.MID G:\MIDI\PRAYER.MID
- equal: C:\NEW\RUNAWAY.MID G:\MIDI\RUNAWAY.MID
-
- the file C:\NEW\ALWAYS.MID with identical content as G:\MIDI\ALWAYS3.MID
- is not shown because the name ALWAYS.MID is different to ALWAYS3.MID
-
- [8] SUGGESTIONS / COMMENTS / BUG REPORTS
-
- WWW: http://hgiicm.tu-graz.ac.at/Cpub
- EMAIL: gnagler@ihm.tu-graz.ac.at
-
- [9] CHANGES
- v1.0 to v1.1:
- - new option /N to match filenames
- - new option /C to match file content
- - fixed bug that did not compare files in hidden or system subdirectories
-